<?php
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use yii\widgets\LinkPager;
use mobile\controllers\XiehuijsController;
use common\models\articles\Articles;
use common\models\member\Member;
use common\models\category\Category;
use common\models\Ad\AdPosition;
use common\models\Ad\Ad;
    $ycgg = Ad::find()->where(['position_id'=>20])->one();//公告广告

    $tongzhi = Articles::find()->where(['category_id'=>18, 'status' => Articles::STATUS_ACTIVE])->asArray()->limit(9)->all();
    $zhengce = Articles::find()->where(['category_id'=>25, 'status' => Articles::STATUS_ACTIVE])->asArray()->limit(9)->all();
    $hangye = Articles::find()->where(['category_id'=>28, 'status' => Articles::STATUS_ACTIVE])->asArray()->limit(9)->all();
    $pinpai = Articles::find()->where(['category_id'=>23, 'status' => Articles::STATUS_ACTIVE])->asArray()->limit(9)->all();
    $xinwen = Articles::find()->where(['category_id'=>14, 'status' => Articles::STATUS_ACTIVE])->asArray()->limit(9)->all();
        // 会员风采
    $memberstyle = Member::find()->where(['status' => Member::STATUS_SUCCESS])->asArray()->limit(9)->all();
    $membersytletype = Category::find()->where(['id' =>20])->asArray()->one()['ctype'];

?>
    <!--位置-->
    <div class="clearFloat bag-fff">
        <div class="sewz m-l-35 m-r-35">
            <a href="<?= yii\helpers\Url::to(['/']);?>">首页</a>-<a href="<?= yii\helpers\Url::to([$pcat['type'], 'id' => $pcat['id'],'z_nav'=>0]); ?>"><?=$pcat['name'];?></a>-<a><?=$cat['name']?></a>
        </div>
    </div>
    <!--位置-->
    <!--列表-->
    <div class="selist bag-fff">
    <?php foreach($articles as $k=>$t){ ?>
        <div class="selista m-l-35 m-r-35">
            <a href="<?= yii\helpers\Url::to([$cat['ctype'], 'id' => $t['id'],'z_nav'=>0]); ?>">
                <div class="selistb">
                    <?=$t['title'];?>
                </div>
                <div class="seldat">
                    <?= date('Y-m-d H:i',$t['updated_at']);?>
                </div>
            </a>
        </div>
    <?php } ?>
    </div>
    <a href="<?= yii\helpers\Url::to([$pcat['type'], 'id' => $pcat['id'],'z_nav'=>0]); ?>" class="ggmore">点击加载更多</a>
    <!--列表-->
    <!--搜索-->
